package com.example.ragproject.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;


@AiService(chatMemory = "chatMemory",chatMemoryProvider = "chatMemoryProviderXiaozhi",tools = "appiontmentTools",contentRetriever = "contentRetrieverXiaozhi")
public interface XiaozhiAgent {

    @SystemMessage(fromResource = "zhaozhi-prompt-template.txt")
    String chat(@MemoryId Long memoryId, @UserMessage String userMessage);
}
